<?php 

	$linkID = new PDO('mysql:host=mysql1.alwaysdata.com;dbname=rdelaporte_ppeusep','90305_robin','squateur');
	$sth = $linkID->query("SELECT * FROM pagesite");
	$rows = array();
	while ($r = $sth->fetch(PDO::FETCH_OBJ)) {
	   $rows[] = $r;
	}
	;

	echo htmlspecialchars(json_encode($rows));
?>

